#ifndef BOXRAYINT_HPP
#define BOXRAYINT_HPP

#include <math.h>
#include <cassert>

#include <vector>

using std::vector;


#include "point.hpp"
#include "bbox.hpp"

bool ray_box_int(const bbox& bb,
		 const point& orig, const point& dir,
		 double t0=-1000, double t1=1000);

  
bool tri_box_int(const bbox& bb, const vector<point> &tri);

bool ray_tri_int(const triang &tr, point o, point d, double *t);



#endif
